//
//  CustomCalloutView.swift
//  ERecycle-Shop
//
//  Created by abb on 16/8/15.
//  Copyright © 2016年 abb. All rights reserved.
//

import UIKit

class CustomCalloutView: UIView {
    
    var image:UIImage? {
        didSet {
            imageView.image = image
        }
    }

    override init(frame: CGRect) {
        super.init(frame: frame)
        imageView.frame = frame
        imageView.contentMode = UIViewContentMode.ScaleAspectFit
        addSubview(imageView)
    }
    
    private lazy var imageView:UIImageView = UIImageView(image: UIImage(named: "pin_select"))
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

}
